package br.com.news.database.daos.interfaces;

import java.util.List;

import br.com.news.database.entities.EnqueteEntity;
import br.com.news.database.exception.DataBaseException;
import br.com.news.database.utils.interfaces.IGenericDao;

public interface IEnqueteDao extends IGenericDao<EnqueteEntity, Long> {

	List<EnqueteEntity> findByQuestion(EnqueteEntity questao);
	
	List<EnqueteEntity> findPollByStatus(boolean status) throws DataBaseException;
	
	List<EnqueteEntity> getLastPoll() throws DataBaseException;
}
